package cn.electronic.sale.mapper;

import cn.electronic.sale.pojo.Orders;
import cn.electronic.sale.pojo.OrdersExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.junit.runners.Parameterized.Parameters;

public interface OrdersMapper {
	int countByExample(OrdersExample example);

	int deleteByExample(OrdersExample example);

	int deleteByGoodsAndCustomerId(@Param("goodsId") Integer goodsId,
			@Param("customerId") Integer customerId);

	int deleteByPrimaryKey(Integer orderId);

	int insert(Orders record);

	int insertSelective(Orders record);

	List<Orders> selectByExample(OrdersExample example);

	Orders selectByPrimaryKey(Integer orderId);

	List<Orders> selectIndentByCustom(Integer customerId);

	int updateByExampleSelective(@Param("record") Orders record,
			@Param("example") OrdersExample example);

	int updateByExample(@Param("record") Orders record,
			@Param("example") OrdersExample example);

	int updateByPrimaryKeySelective(Orders record);

	int updateByPrimaryKey(Orders record);
}